You can use regex101 to check if your regex pattern is syntactically correct. regex101 is an online tool for testing and debugging regular expression patterns.
RegExr is an online tool to learn, build, & test Regular Expressions (RegEx / RegExp). Supports JavaScript & PHP/PCRE RegEx. Results update in real-time as ...